package com.ruoyi.web.mapper;

import com.ruoyi.web.domain.dto.GangdanAppraiseParamDto;
import com.ruoyi.web.domain.dto.GongdanConfirmParamDto;
import com.ruoyi.web.domain.vo.GangdanAppraiseVo;
import com.ruoyi.web.domain.vo.GongdanConfirmVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GangDanConfirmMapper {

    /**
     * 设置工单确认信息
     * @param gongdanConfirmParamDto
     */
    void updateGangDanConfirm(@Param("dto") GongdanConfirmParamDto gongdanConfirmParamDto);

    /**
     *  设置工单评价信息
     * @param paramDto
     */
    void addGangDanAppraise(@Param("dto") GangdanAppraiseParamDto paramDto);

    /**
     * 根据工单id查询工单确认信息
     * @param baseId
     * @return
     */
    GongdanConfirmVo queryGongDanConfirmVoById(@Param("baseId") Long baseId);

    /**
     * 根据工单id查询工单评价信息
     * @param baseId
     * @return
     */
    GangdanAppraiseVo queryGangDanAppraiseVoById(@Param("baseId") Long baseId);

    void backGongDanConfirm(@Param("baseId") Long baseId);

    Integer queryWorkFromStatus(@Param("baseId") Long baseId);

    String queryCompleteConfirmation(@Param("baseId") Long baseId);

    void updateWorkFormStatus(@Param("baseId") Long baseId, @Param("status") Integer status);

    List<GangdanAppraiseVo> queryNoEvaList();

    void updateWorkFormEva(@Param("baseId") Long baseId, @Param("eva") String eva);

}
